	<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<s:form method="post" action="updateBackgroundProcess.htm" theme="simple" id="form">
<table width="100%">
	<tr>
		<td height="40" class="sectionheading bottom-border">
			Background process
		</td>
	</tr>
	<tr>
		<td>
			<s:actionerror cssClass="note-red"/>
			<s:actionmessage cssClass="note-red"/>
		</td>
	</tr>
	<tr>
		<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				class="Textfiled-border">
				<tbody>
					<tr align="center" height="25">
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							#
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Process name
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Moniter(Last Updated Time)
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Retrace
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Time For Update
						</td>
					</tr>

				<s:iterator value="backgroundProcessList" status="rowstatus">
					<s:hidden name="backgroundProcessMap[%{id}].id" value="%{id}" />
					<s:set name="classCSS" value="%{'Textfiled-no-border-odd'}" var="classCSS"></s:set>
					<s:set name="bgColor" value="%{'#FFFFFF'}" var="bgColor"></s:set>

					<s:if test="#rowstatus.even">
						<s:set var="classCSS" value="%{'Textfiled-no-border-even'}"></s:set>
						<s:set var="bgColor" value="%{'#F8F8F8'}"></s:set>
					</s:if>
					<tr align="center" height="25">
						<td width="10%" align="center" bgcolor="<s:property value="%{bgColor}" />" class="right-border verdana12blacknormal">
							<s:property value="%{#rowstatus.index + 1}" />
						</td>
						<td width="30%" align="center" bgcolor="<s:property value="%{bgColor}" />" class="right-border verdana12blacknormal">
							<s:hidden name="backgroundProcessMap[%{id}].name" value="%{name}" />
							<s:property value="name" />
						</td>
						<td width="25%" align="center" bgcolor="<s:property value="%{bgColor}" />" class="right-border verdana12blacknormal">
							<s:hidden name="backgroundProcessMap[%{id}].lastUpdate" value="%{lastUpdate}" />
							<s:if test="lastUpdate == null">Never</s:if>
							<s:else><s:property value="lastUpdate" /></s:else>
						</td>
						<td width="20%"  align="center" bgcolor="<s:property value="%{bgColor}" />" class="right-border verdana12blacknormal">
							Last <s:property value="updateTime" /> min
						</td>
						<td width="15%" align="center" bgcolor="<s:property value="%{bgColor}" />" class="verdana12blacknormal">
							<s:textfield theme="simple" size="10" name="backgroundProcessMap[%{id}].updateTime" cssClass="textfiled-border" value="%{updateTime}"></s:textfield>
						</td>
					</tr>
				</s:iterator>
				</tbody>
			</table>
		</td>
	</tr>
	<tr>
		<td align="center">
			<s:submit type="image" value="Create Categories" align="center" src="../Admin-Images/submit-btn.gif" theme="simple"></s:submit>
		</td>
	</tr>
</table>
</s:form>